From 7dfb78f88292a96f537c3d265f14b4fdc7588649 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Fri, 29 Mar 2002 00:15:11 +0000 Subject: [PATCH] Don't show the window unless the widget is mapped. (#76742, Dennis MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Thu Mar 28 18:38:30 2002 Owen Taylor * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): Don't show the window unless the widget is mapped. (#76742, Dennis Björklund, Soeren Sandmann) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkhpaned.c | 3 ++- gtk/gtkvpaned.c | 5 +++-- 8 files changed, 41 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8d0fcaffac..66bc216965 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Mar 28 18:38:30 2002 Owen Taylor + + * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): + Don't show the window unless the widget is mapped. + (#76742, Dennis Björklund, Soeren Sandmann) + 2002-03-29 Hans Breuer Fixed dashed line issues (#74441) to an IMO reasonable extend. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 8d0fcaffac..66bc216965 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Thu Mar 28 18:38:30 2002 Owen Taylor + + * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): + Don't show the window unless the widget is mapped. + (#76742, Dennis Björklund, Soeren Sandmann) + 2002-03-29 Hans Breuer Fixed dashed line issues (#74441) to an IMO reasonable extend. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 8d0fcaffac..66bc216965 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Thu Mar 28 18:38:30 2002 Owen Taylor + + * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): + Don't show the window unless the widget is mapped. + (#76742, Dennis Björklund, Soeren Sandmann) + 2002-03-29 Hans Breuer Fixed dashed line issues (#74441) to an IMO reasonable extend. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 8d0fcaffac..66bc216965 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Thu Mar 28 18:38:30 2002 Owen Taylor + + * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): + Don't show the window unless the widget is mapped. + (#76742, Dennis Björklund, Soeren Sandmann) + 2002-03-29 Hans Breuer Fixed dashed line issues (#74441) to an IMO reasonable extend. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 8d0fcaffac..66bc216965 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Thu Mar 28 18:38:30 2002 Owen Taylor + + * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): + Don't show the window unless the widget is mapped. + (#76742, Dennis Björklund, Soeren Sandmann) + 2002-03-29 Hans Breuer Fixed dashed line issues (#74441) to an IMO reasonable extend. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 8d0fcaffac..66bc216965 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Thu Mar 28 18:38:30 2002 Owen Taylor + + * gtk/gtk[hv]paned.c (gtk_[hv]paned_size_allocate): + Don't show the window unless the widget is mapped. + (#76742, Dennis Björklund, Soeren Sandmann) + 2002-03-29 Hans Breuer Fixed dashed line issues (#74441) to an IMO reasonable extend. diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c index b0e6481a66..4d35345a5b 100644 --- a/gtk/gtkhpaned.c +++ b/gtk/gtkhpaned.c @@ -172,7 +172,8 @@ gtk_hpaned_size_allocate (GtkWidget *widget, if (GTK_WIDGET_REALIZED (widget)) { - gdk_window_show (paned->handle); + if (GTK_WIDGET_MAPPED (widget)) + gdk_window_show (paned->handle); gdk_window_move_resize (paned->handle, paned->handle_pos.x, paned->handle_pos.y, diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c index 39316f8668..47d12ddc2f 100644 --- a/gtk/gtkvpaned.c +++ b/gtk/gtkvpaned.c @@ -170,9 +170,10 @@ gtk_vpaned_size_allocate (GtkWidget *widget, paned->handle_pos.width = MAX (1, (gint) widget->allocation.width - 2 * border_width); paned->handle_pos.height = handle_size; - if (GTK_WIDGET_REALIZED(widget)) + if (GTK_WIDGET_REALIZED (widget)) { - gdk_window_show (paned->handle); + if (GTK_WIDGET_MAPPED (widget)) + gdk_window_show (paned->handle); gdk_window_move_resize (paned->handle, paned->handle_pos.x, paned->handle_pos.y, -- 2.30.2